<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>登录</title>
    <script src="https://unpkg.com/vue@3"></script>
</head>
<body>
    <div id="app">
        <input @click="show=true" type="radio" value="QQ登录" v-model="users">QQ登录
        <input type="radio" value="手机登录" v-model="users">手机登录
        <input type="radio" value="邮箱登录" v-model="users">邮箱登录
        <div v-show="show">
            <div v-if="users=='QQ登录'">
                <h2>QQ登录</h2>
                用户名：<input type="text" v-model="name"><br>
                密   码:<input type="password" v-model="password"><br>
            </div>
            <div v-else-if="users=='手机登录'">
                <h2>手机号登录</h2>
                手机号：<input type="text" v-model="name"><br>
                验证码:<input type="password" v-model="password"><br>
            </div>
            <div v-else>
                <h2>邮箱登录</h2>
                邮箱：<input type="text" v-model="name"><br>
                密   码:<input type="password" v-model="password"><br>
            </div>
        </div>
        <button>登录</button>
    </div>
</body>
</html>
<script>
    const connApp = Vue.createApp({
        data() {
            return {
                users:'',
                show:false,
                name:'',
                password:''
            }
        },
    }).mount("#app")
</script>